<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('click_learn_spells', function (Blueprint $table) {
            $table->id();
            $table->integer('click_learn_id')->default(0)->comment('拼写id');
            $table->string('name')->nullable()->comment('名称');
            $table->integer('time')->default(0)->comment('卡点时间');
            $table->string('color')->nullable()->comment('变色');
            $table->integer('is_option')->default(0)->comment('是否为选项');
            $table->bigInteger('end_time')->default(0)->comment('结束时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('click_learn_spells');
    }
};
